package com.nas.crocus.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nas.crocus.dao.AlojamientoDao;
import com.nas.crocus.domain.Alojamiento;
import com.nas.crocus.service.AlojamientoService;

@Service
@Transactional
public class AlojamientoServiceImpl implements AlojamientoService {

    @Autowired
    private AlojamientoDao alojamientoDao;
    
    @Override
    public Collection<Alojamiento> buscarPorEventoId(Long eventoId) {
        return alojamientoDao.buscarPorEventoId(eventoId);
    }

    @Override
    public Alojamiento obtener(Long alojamientoId) {
        return alojamientoDao.obtener(alojamientoId);
    }

}
